package org.yxj.requestlibaray.bean;

import com.chad.library.adapter.base.BaseViewHolder;

public class FileBean implements Comparable<FileBean>{

    public String fileName ;
    public String filePath ;
    public int progress ;
    public String currentFinishProgress;
    public BaseViewHolder helper;
    public boolean isSuccess  ;
    /*生成时间*/
    public long time;



    public FileBean(String fileName, String filePath) {
        this.fileName = fileName;
        this.filePath = filePath;
        time = System.currentTimeMillis() ;
    }



    @Override
    public int compareTo(FileBean fileBean) {
        return (int) (this.time - fileBean.time);
    }


    @Override
    public String toString() {
        return "FileBean{" +
                "fileName='" + fileName + '\'' +
                ", filePath='" + filePath + '\'' +
                ", progress=" + progress +
                ", currentFinishProgress='" + currentFinishProgress + '\'' +
                ", helper=" + helper +
                ", isSuccess=" + isSuccess +
                ", time=" + time +
                '}';
    }
}
